package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 我的研究管理对象 research
 *
 * @author ruoyi
 * @date 2024-06-23
 */
public class Research extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 研究ID */
    private Long id;

    /** 研究名称 */
    @Excel(name = "研究名称")
    private String sname;

    /** 医院ID */
    @Excel(name = "医院ID")
    private Long hospitalId;

    /** 版本日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "版本日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSname(String sname)
    {
        this.sname = sname;
    }

    public String getSname()
    {
        return sname;
    }
    public void setHospitalId(Long hospitalId)
    {
        this.hospitalId = hospitalId;
    }

    public Long getHospitalId()
    {
        return hospitalId;
    }
    public void setTime(Date time)
    {
        this.time = time;
    }

    public Date getTime()
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sname", getSname())
            .append("hospitalId", getHospitalId())
            .append("time", getTime())
            .toString();
    }
}
